import request2 from '@/utils/request2'
import { safetyApiUrl } from '@/api/config'

export default {
  del(params) {
    return request2({
      url: safetyApiUrl + '/quality/types-label/del', method: 'post', params
    })
  },
  list(params, data) {
    return request2({
      url: safetyApiUrl + '/quality/types-label/list', method: 'get', params, data
    })
  },
  detail(params, data) {
    return request2({
      url: safetyApiUrl + '/safetyOnSiteContentInfo/getSafetyOnSiteContentInfoById', method: 'get', params, data
    })
  },
  add(params, data) {
    return request2({
      url: safetyApiUrl + '/quality/types-label/add', method: 'post', params, data
    })
  },
  edit(params, data) {
    return request2({
      url: safetyApiUrl + '/quality/label-types/edit', method: 'post', params, data
    })
  },
}